
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class GuildescortRobberCfg : public ManualSingleton <GuildescortRobberCfg>
{
	friend ManualSingleton <GuildescortRobberCfg>;
public:
	GuildescortRobberCfg();
	~GuildescortRobberCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const GuildescortRobberCfgInfo *GetGuildescortRobberCfgInfo(int32_t robberGangId);
	const GuildescortRobberCfgMap *GetGuildescortRobberCfgMap() { return &m_GuildescortRobberCfgMap; }
private:
	GuildescortRobberCfgMap m_GuildescortRobberCfgMap;
};

#define  g_MakeGuildescortRobberCfgTable() (GuildescortRobberCfg::Instance())
#define  g_GetGuildescortRobberCfgTable() (GuildescortRobberCfg::GetInstance())
#define  g_DelGuildescortRobberCfgTable() (GuildescortRobberCfg::Destroy())